package com.xiaolin.designmode.decorator;

/**
 * @ClassName Decorator
 * @Description 抽象装饰角色
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/2
 * @Version 1.0
 */
public class Decorator implements Component{
    protected Component component;
    public Decorator(Component component){
        this.component=component;
    }
    @Override
    public void work() {
        component.work();
    }
}
